﻿using ChestPainCenterSystem.Code.Bll;
using ChestPainCenterSystem.Core;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChestPainCenterSystem.Areas.ChestPainCenter.Controllers
{
    public class PatientTrajectoryController : BaseController
    {
        public ActionResult Index()
        {
            return View();
        }

        public JsonResult GetPatientTrajectory(string patientId = null)
        {
            OperateResult resultInfo = new OperateResult();
            if (!string.IsNullOrEmpty(patientId))
                resultInfo = PatientTrajectoryManager.GetPatientTrajectory(patientId);
            return Json(resultInfo.Body);
        }
    }
}
